
Pod::Spec.new do |s|
  s.name             = 'JwPack'
  s.version          = '1.0.55'
  s.summary          = 'A short description of JwPack.'

  s.description      = <<-DESC
TODO: Add long description of the pod here.
                       DESC

  s.homepage         = 'https://gitee.com/giteecjw0124/JwPack'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'giteecjw0124' => 'chenjingwei0124@foxmail.com' }
  s.source           = { :git => 'https://gitee.com/giteecjw0124/JwPack.git', :tag => s.version.to_s }

  s.ios.deployment_target = '10.0'
  s.resources = ['JwPack/Assets/*.{xcassets}']
  s.source_files = 'JwPack/Classes/JwPack.h'
  
  s.subspec 'Macro' do |m|
    m.source_files = 'JwPack/Classes/Macro/*'
  end
  
  s.subspec 'Skin' do |skin|
    skin.source_files = 'JwPack/Classes/Skin/*'
  end
  
  s.subspec 'Exten' do |e|
    e.dependency 'JwPack/Macro'
    e.dependency 'SDWebImage'
    e.source_files = 'JwPack/Classes/Exten/*'
  end
  
  s.subspec 'Core' do |r|
    r.dependency 'JwPack/Exten'
    r.source_files = 'JwPack/Classes/Core/*'
  end
  
  s.subspec 'Category' do |c|
    c.dependency 'JwPack/Macro'
    c.dependency 'JwPack/Core'
    c.dependency 'SDWebImage'
    c.dependency 'Masonry'
    c.dependency 'MJRefresh'
    c.source_files = 'JwPack/Classes/Category/*'
  end
  
  s.subspec 'Frame' do |f|
    f.dependency 'JwPack/Exten'
    f.dependency 'JwPack/Category'
    f.dependency 'JSONModel'
    f.source_files = 'JwPack/Classes/Frame/**/*'
  end
  
  s.subspec 'Helper' do |h|
    h.dependency 'JwPack/Exten'
    h.dependency 'JwPack/Category'
    h.dependency 'MBProgressHUD'
    h.source_files = 'JwPack/Classes/Helper/*'
  end
  
  s.subspec 'JwiPhoneModel' do |ji|
    ji.source_files = 'JwPack/Classes/Vendor/JwiPhoneModel/*'
  end
  
  s.subspec 'General' do |g|
    g.dependency 'JwPack/Helper'
    g.dependency 'JwPack/JwiPhoneModel'
    g.dependency 'AFNetworking'
    g.source_files = 'JwPack/Classes/General/**/*'
  end
  
  s.subspec 'JwWeb' do |jw|
    jw.dependency 'JwPack/Macro'
    jw.dependency 'JwPack/Exten'
    jw.dependency 'JwPack/Category'
    jw.dependency 'JwPack/Frame'
    jw.source_files = 'JwPack/Classes/Vendor/JwWeb/*'
  end
  
  s.subspec 'JwChartsView' do |jc|
    jc.dependency 'JwPack/Macro'
    jc.dependency 'JwPack/Category'
    jc.source_files = 'JwPack/Classes/Vendor/JwChartsView/*'
  end
  
  s.frameworks = 'UIKit', 'Foundation', 'CoreText', 'QuartzCore'
  
end
